package com.yz.lzq.liwushuo.ui.modules.home.boutique;

import com.yz.lzq.liwushuo.http.OnGetNetDataListener;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueBannerBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueFenLeiBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueRecycleBean;

/**
 * Created by Administrator on 2016/12/19.
 */

public class HomeBoutiqueContract {

    /**
     * Created by Administrator on 2016/12/13.
     * home页面的精品fragment view层的接口
     */

    public static interface HomeBoutiqueViewInterface {
        /**
         * 回调获取banner的数据
         *
         * @param bannerBean
         */
        void getHomeJingPinBannerBean(HomeBoutiqueBannerBean bannerBean);

        /**
         * 回调获取分类的数据
         *
         * @param fenLeiBean
         */
        void getHomeBoutiqueFenLeiBean(HomeBoutiqueFenLeiBean fenLeiBean);

        /**
         * 回调获取填充recycleview的数据
         *
         * @param recycleBean
         */
        void getHomeBoutiqueRecycleBean(HomeBoutiqueRecycleBean recycleBean);

        /**
         * 返回加载下一页的数据的地址
         */
        String getNextUrl();
    }

    /**
     * Created by Administrator on 2016/12/13.
     * 底部导航栏首页下的精品类的fragment的model层的接口
     */

    public static interface HomeBoutiqueModelInterface {
        /**
         * 获取banner的数据
         *
         * @param listener
         */
        void LoadHomeJinPinBannerBean(OnGetNetDataListener<HomeBoutiqueBannerBean> listener);

        /**
         * 获取分类的数据
         *
         * @param listener
         */
        void LoadHomeJinFenLeiBean(int gender, int generation, OnGetNetDataListener<HomeBoutiqueFenLeiBean> listener);

        /**
         * 获取填充RecycleView的数据
         * AD=2&gender=1&generation=2&LIMIT=20&OFFSET=0
         *
         * @param listener
         */
//        void LoadHomeJinRecycleViewBean(int ad, int gender, int generation, int limit, int offset, OnGetNetDataListener<HomeBoutiqueRecycleBean> listener);
    }

}
